home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVPOPEN.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  32 lines

  1. /*================================================*/
  2. /* TVPOPEN.C                                      */
  3. /*                                                */
  4. /* (c) Copyright 1988 Ralf Brown                  */
  5. /*     All Rights Reserved                        */
  6. /* May be freely copied for noncommercial use,    */
  7. /* provided that this copyright notice remains    */
  8. /* intact and any changes are indicated in the    */
  9. /* comment blocks preceding functions             */
  10. /*================================================*/
  11.  
  12. #include "tvapi.h"
  13.  
  14. /*================================================*/
  15. /* TVptr_open   attach pointer to a window        */
  16. /*   Ralf Brown 6/12/88                           */
  17. /*================================================*/
  18.  
  19. void pascal TVptr_open(OBJECT ptr,OBJECT win)
  20. {
  21.    PARMLIST1 p ;
  22.  
  23.    if (TVisobj(ptr))
  24.       {
  25.       p.num_args = 1 ;
  26.       p.arg[0] = (DWORD) (win?win:TVmywindow()) ;
  27.       TVsendmsg(OPEN_MSG, TOS, ptr, (PARMLIST *)&p) ;
  28.       }
  29. }
  30.  
  31. /* End of TVPOPEN.C */
  32.